package com.itheima.sh.pojo;

/*

    TODO mybatis的orm思想要求: 实例类 (pojo: Plain Old Java Object 简单的 Java 对象)
    一. 硬性规范(不能违背,违背会报错)
        1. 属性名必须要和字段名一致
        2. 必须要有get/set方法
        3. public 空参构造
    二. 软性规范(可以违背,推荐你这么做)
        1. 类名跟表名一致
        2. 字段类型如果没有特殊要求,直接写String
        3. 基本类型不要用,用对应包装类型

 */
public class User {
    private Integer id;
    private String username;
    private String birthday;
    private String sex;
    private String address;

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", birthday='" + birthday + '\'' +
                ", sex='" + sex + '\'' +
                ", address='" + address + '\'' +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
}
